package com.itcanteen.medical.patient.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.time.DateTime;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "t_work")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Work {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "doctor_id")
    private Long doctorId;

    @Column(name = "status")
    private Long status;
}
